<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		* {
			padding: 0;
			margin: 0;
			box-sizing: border-box;
		}
		.container,.main{
			display: flex;
			width: 200px;
			height: 200px;
			border: 1px solid red;
			overflow: hidden;
		}
		.container {
			margin-bottom: 50px;
		}
		.main {
			margin-top: 50px;
		}
		
	</style>
</head>
<body>
	<div class="container">
		<div class="box">1</div>
		<span class="span">2</span>
	</div>
	<div class="main">
		<div class="box">1</div>
		<span class="span">2</span>
	</div>
</body>
</html>